﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TestCase.Master" AutoEventWireup="true" CodeBehind="SyndicationTests.aspx.cs" Inherits="OpenWaves.Web.Tests.SyndicationTests" %>
<%@ Import Namespace="OpenWaves" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TestCasePlaceHolder" runat="server">
    <asp:CheckBoxList runat="server" ID="feedsSelector" AutoPostBack="True" OnSelectedIndexChanged="feedSelector_SelectionChanged">
        <Items>
            <asp:ListItem Text="Charles Petzold" Value="http://www.charlespetzold.com/rss.xml" />
            <asp:ListItem Text="BCL Team Blog" Value="http://blogs.msdn.com/b/bclteam/rss.aspx" />
            <asp:ListItem Text="Building Windows 8" Value="http://blogs.msdn.com/b/b8/rss.aspx" />
        </Items>
    </asp:CheckBoxList>

    <ow:SyndicationItemRepeater runat="server" DataSource="<%# Feed %>">
        <Template>
            <ul style="width: 500px">
                <ow:ItemsPlaceHolder runat="server" />
            </ul>
        </Template>
        <ItemTemplate>
            <li>
                <h2><%#Html.Encode(Container.Item.Title.Text) %></h2>
                <p><%#Html.Encode(Html.StripTags(Container.Item.Summary.Text), 500) %></p>
            </li>
        </ItemTemplate>        
    </ow:SyndicationItemRepeater>
</asp:Content>
